from django.urls import path

from .views import (
    index,
    NetworkListView,
    NetworkCreateView,
    NetworkUpdateView,
    NetworkDeleteView,
    StationListView,
    StationCreateView,
    StationUpdateView,
    StationDetailView,
    StationDeleteView,
)

app_name = 'basic'

urlpatterns = [
    path('', index, name='index'),
    path('network/', NetworkListView.as_view(), name='network_list'),
    path('network/add/', NetworkCreateView.as_view(), name='network_add'),
    path('network/edit/<str:slug>/',
         NetworkUpdateView.as_view(),
         name='network_edit'),
    path('network/delete/<str:slug>/',
         NetworkDeleteView.as_view(),
         name='network_delete'),
    path('station/', StationListView.as_view(), name="station_list"),
    path('station/add/', StationCreateView.as_view(), name="station_add"),
    path('station/<str:slug>/edit',
         StationUpdateView.as_view(),
         name="station_edit"),
    path('station/<str:slug>/delete/',
         StationDeleteView.as_view(),
         name="station_delete"),
    path('station/<str:slug>/detail/',
         StationDetailView.as_view(),
         name="station_detail"),
]